package com.example.sharding.jdbc.demo.config.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * ShardingJdbc数据源参数
 *
 * @author airtrioa
 * @date 2021/5/6
 */
@Configuration
@ConfigurationProperties("spring.shardingsphere")
public class ShardingJdbcDatasourceProperties {
  @Getter
  @Setter
  private Map<String, YamlShardingDatasourceProperties> datasource = new LinkedHashMap<>();
}
